home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000033_amos-request@svcs1.digex.net_Sat Sep 2 20:52:08 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id UAA19381;  for  ; Sat, 2 Sep 1995 20:52:07 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id TAA16083 for amos-out; Sat, 2 Sep 1995 19:16:54 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id TAA16080 for <amos-list@svcs1.digex.net>; Sat, 2 Sep 1995 19:16:53 -0400
  4. Received: from ds1.acs.ucalgary.ca (root@ds1.acs.ucalgary.ca [136.159.34.101]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id TAA14954;  for <amos-list@access.digex.net> ; Sat, 2 Sep 1995 19:16:51 -0400
  5. Received: by acs3.acs.ucalgary.ca (AIX 4.1/UCB 5.64/4.03)
  6.           id AA34050; Sat, 2 Sep 1995 17:19:06 -0600
  7. Message-Id: <9509022319.AA34050@acs3.acs.ucalgary.ca>
  8. Subject: sound compression
  9. To: amos-list@access.digex.net
  10. Date: Sat, 2 Sep 95 17:19:06 MDT
  11. From: "Robert Andrew Currie" <racurrie@acs.ucalgary.ca>
  12. X-Mailer: ELM [version 2.3 PL11B]
  13. Mime-Version: 1.0
  14. Content-Type: text/plain; charset=US-ASCII
  15. Content-Transfer-Encoding: 7bit
  16. Content-Length: 1481      
  17. Status: RO
  18. X-Status: 
  19.  
  20.     I am having a problem with sound compression. Currently I
  21. am trying to create a routine that will load in any size sample
  22. stored in my own format and play it in the background. To do
  23. this, I am using the Squash/Unsquash routines as well as the
  24. SLoad, Sam Swapped and Sam Swap commands. The format I am using
  25. for my samples is:
  26.  
  27. Frequency(2),Load Length(2),Final Size(2), Sample Data,
  28.         ,Load Length(2)...
  29.  
  30. The routine would get the frequency of the sample, and then get
  31. the load length and final size. I would then use the load length
  32. to Sload the Sample Data into my first buffer of 5k. If the load
  33. length is less than the final size then I would proceed to
  34. unsquash it with OK=UnSquash(Start(bufferno),Load Length). I
  35. would then play the sample data stored in bufferno as a raw
  36. sample. I would then estimate the time of play for that segment
  37. and use the Every x Proc command to start the multitasking
  38. loop. In the loop the next segment would be loaded using the same
  39. technique as above and when Sam Swapped(voice no) is true I then
  40. us the Sam Swap command to switch buffers to the new one so that
  41. the sound sample would continue playing on that buffer.
  42.  
  43. The problem I am having occurs when the Load Length and Final
  44. Size are the same(Squash was unable to compress the data). When
  45. it reaches one of these segments it plays some garbage data that
  46. sounds like an out of tune vocal ladder. The segments that got
  47. compressed work perfectly. What is happening?!?
  48.  
  49.             Robert Currie
  50.